package com.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.jms.producer.ProducerService;
import com.jms.publisher.PublisherService;

public class ProducerTest1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

         ApplicationContext context = new ClassPathXmlApplicationContext("spring/spring.xml");
         ProducerService producer = (ProducerService) context.getBean("producerService");
         PublisherService publisher = (PublisherService) context.getBean("publisherService");
         producer.send();
         publisher.send();
	}

}
